home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
45 Great Windows Utilities 6
/
45 Great Windows Utilities Volume 6 MOJO-405 (Mojo Software).iso
/
rwin
/
strext.h
< prev
Wrap
C/C++ Source or Header
|
1994-07-31
|
2KB
|
51 lines
/*
* RWindows 0.5a Beta release 2 Windows startup screen randomizer
* Copyright (C) 1994 Michael Lea
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the Licence, or any later
* version.
*/
#include <strings.h>
// OVERLOAD strcat() TO ALLOW CONCATENATION OF MULTIPLE STRINGS IN A SINGLE COMMAND
char *strcat(char *s1, const char *s2, const char *s3);
char *strcat(char *s1, const char *s2, const char *s3, const char *s4);
char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5);
char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6);
char *strcat(char *s1, const char *s2, const char *s3)
{
s1 = strcat(s1, s2);
if (s1 != NULL)
s1 = strcat(s1, s3);
return s1;
}
char *strcat(char *s1, const char *s2, const char *s3, const char *s4)
{
s1 = strcat(s1, s2, s3);
if (s1 != NULL)
s1 = strcat(s1, s4);
return s1;
}
char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5)
{
s1 = strcat(s1, s2, s3, s4);
if (s1 != NULL)
s1 = strcat(s1, s5);
return s1;
}
char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6)
{
s1 = strcat(s1, s2, s3, s4, s5);
if (s1 != NULL)
s1 = strcat(s1, s6);
return s1;
}